package plugin

import (
	"gitee.com/kristas/booting-go/framework"
	"gitee.com/kristas/booting-go/framework/security"
	"gitee.com/kristas/booting-go/plugin/casbin_plugin"
	"net/http"
)

func init() {
	framework.Component(
		casbin_plugin.NewFilter(func(r *http.Request) string {
			return "admin"
		}),
		security.NewStarter(),
	)
}
